﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Admin.Domain;

namespace Windows.Admin.Application
{
    public interface IAppService
    {
        /// <summary>
        /// 获取应用列表
        /// </summary>
        /// <returns></returns>
        Task<List<AppTreeResponse>> GetApps();
        /// <summary>
        /// 获取ids的应用列表
        /// </summary>
        /// <returns></returns>
        Task<List<AppTreeResponse>> GetNoResourceAppsByIds(List<long> ids);
        /// <summary>
        /// 获取当前用户的桌面快捷方式列表
        /// </summary>
        /// <returns></returns>
       Task<List<AppResponse>> GetCurrentUserShortuts();
        /// <summary>
        /// 获取所有目录
        /// </summary>
        /// <returns></returns>
        Task<List<AppTreeResponse>> GetCatalogs();
        /// <summary>
        /// 获取不是资源类型的应用列表
        /// </summary>
        /// <returns></returns>
        Task<List<AppTreeResponse>> GetNoResourceApps();
        /// <summary>
        /// 获取pId的应用列表
        /// </summary>
        /// <param name="appCatalogId"></param>
        /// <returns></returns>
        Task<List<AppResponse>> GetByPId(int appCatalogId);
        /// <summary>
        /// 应用管理窗体
        /// </summary>
        /// <returns></returns>
        Task<List<AppTreeResponse>> Query();
        /// <summary>
        /// 获取id的应用详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<AppResponse> Detail(int id);
        /// <summary>
        /// 应用保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(AppSaveRequest request);
    }
}
